package com.developmentReformProject.enums;

/**
 * 项目具体分类枚举类
 */
public enum ProjectSpecificTypeEnum {
    ARCHITECTURE("0","建筑行业"),
    EDUCATION("1","教育行业"),
    PUBLIC("2","水利，环境，公共设施"),
    AGRICULTURE("3","农，林，牧，渔业"),
    ENERGY("4","电力，燃气，能源");

    private String value;
    private String description;

    public String getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    private ProjectSpecificTypeEnum( String value, String description ) {
        this.value = value;
        this.description = description;
    }

    /**
     * 值转化描述
     */
    public static String valueToDESC( String value ) {
        for (ProjectSpecificTypeEnum projectSpecificTypeEnum : ProjectSpecificTypeEnum.values()) {
            if (value.equals(projectSpecificTypeEnum.getValue())) {
                return projectSpecificTypeEnum.getDescription();
            }
        }
        return null;
    }
}
